package com.dhcc.bpm.modules.log.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @ClassName TradeTrendsVo.class
 * @Description 交易量视图实体类
 * @Author xiaFaYu
 * @Date 2019-12-16 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Data
@ApiModel(value = "TradeTrendsVo", description = "交易量")
public class TradeTrendsVo {
    private static final long serialVersionUID = 1L;
    /**
     * 请求日期
     */
    private String requestTime;
    /**
     * 交易量
     */
    @JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
    private Long num;
    /**
     * 交易成功量
     */
    @JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
    private long successNum;
    /**
     * 返回类类型--判断是交易量(num)还是交易成功量(successNum)标志
     */
    private String type;
    /**
     * 当日失败数
     */
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private Long failNum;
    /**
     * 当日响应数
     */
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private Long responseNum;
    /**
     * 当日成功率
     */
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private double successRate;
    /**
     * 当日响应率
     */
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private double responseRate;
    /**
     * 时耗
     */
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private String requestConsume;
    /**
     * 平均时间
     */
    private String averageConsume;
    /**
     * 最大时间
     */
    private String maxConsume;

    /**
     *页面的view1Scale
     */
    private List<String> ticks;
}
